package com.xuwang.mapper;

import com.xuwang.pojo.CaseFiling;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author jesse
 */
@Mapper
public interface CaseFilingMapper {
    /**
     * delete by primary key
     *
     * @param list primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey (List<String> list);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert (CaseFiling record);

    int insertOrUpdate (CaseFiling record);

    int insertOrUpdateSelective (CaseFiling record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective (CaseFiling record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    CaseFiling selectByPrimaryKey (Integer id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective (CaseFiling record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey (CaseFiling record);

    int updateBatch (List<CaseFiling> list);

    int updateBatchSelective (List<CaseFiling> list);

    int batchInsert (@Param("list") List<CaseFiling> list);

    List<CaseFiling> selectAll (@Param("page") int page, @Param("limit") int limit, @Param("date") String date,CaseFiling caseFiling);

}